package com.ziyun.pop.modules.supp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.goods.model.seller.RegisterSellerParamDto;
import com.ziyun.pop.modules.supp.dto.SellerCopyGoodsDto;
import com.ziyun.pop.modules.supp.dto.SellerInfoAuditDto;
import com.ziyun.pop.modules.supp.dto.SellerRegisterDto;
import com.ziyun.pop.modules.supp.entity.SellerInfoEntity;
import com.ziyun.pop.modules.supp.vo.CustomVo;
import com.ziyun.pop.modules.supp.vo.SalesVo;
import com.ziyun.pop.modules.supp.vo.SellerInfoVo;
import com.ziyun.pop.modules.supp.vo.SellerShipVo;
import io.renren.common.utils.R;
import io.renren.modules.sys.entity.SysUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 商户入驻接口
 * @author gaosheng
 * @email
 * @date 2018-09-30 10:37
 */
public interface SellerInfoService extends IService<SellerInfoEntity> {

    R saveSubSellerInfo(SellerRegisterDto sellerRegisterDto);

    R queryPageSubSellerList(Map<String, Object> params);

    R checkVerifyCode(String sellerMobile, String verifyCode);

    SellerInfoVo querySellerInfo(Long sellerId);

    R saveSellerInfo(SellerInfoAuditDto sellerInfoAuditDto);

    List<SalesVo> querySalesList(Long sellerId);

    CustomVo getCustom(Long sellerId);

    SellerShipVo queryShipInfo(Long sellerId);

    R sellerCopyGoods(SellerCopyGoodsDto sellerCopyGoodsDto);

    void updateByMap(Map<String, Object> map, Long sellerId);
    //根据订单号查询是否是自营的
    Integer getSelfByOrderNo(String orderNo);

    R getSellerInfo(Long sellerId);

    R getSellerData(Long sellerId);

    R getSellerTodayData(Long sellerId);

    //小程序绑定银行卡
    R bindBankCard(String receiverName,String receiverCredential,String receiverAccount,String receiverAccountBranch,Long sellerId);
    //小程序查看已绑定银行卡
    R bankCard(Integer sellerId);

    R initSellerMallUserId(Integer nums);

    SysUserEntity initUserWithOpenId(String openId,String uuid);

    R registerSeller(RegisterSellerParamDto registerSellerParamDto);
}

